package com.zjyd.douyangsystem.controller;

import com.zjyd.douyangcommoncore.result.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * 支付接口
 */
@Slf4j
@RestController
@RequestMapping("/douyang/system/pay")
public class PayController {

    @GetMapping("/topup")
    public Result topup(){
        return Result.success("充值成功");
    }

    /**
     * 查询自己余额
     */
    @GetMapping("/checkMyBalance")
    public String checkMyBalance(@RequestParam String userId){
        log.info("我被{}调用了",userId);
        return "查询成功余额100";
    };
}
